<?php
$str_random = random_string(7);
$_SESSION['str_random'] = $str_random;
if (sizeof($arr_single_citizen)>0){
	$v_username = $arr_single_citizen['C_USERNAME'];
	$v_xml_str = $arr_single_citizen['C_XML_DATA'];
}else{
	$v_username = "";
	$v_xml_str = '<?xml version="1.0" encoding="UTF-8"?><root><data_list></data_list></root>';
}
$v_display_none = "block";
$v_password_optional = false;
//if (sizeof($arr_single_citizen)>0){
//	$v_display_none = "none";
//	$v_password_optional = true;
//}

?>
<table width='100%'  border='0' cellspacing='0' cellpadding='0'>
	<tr>
		<td class='large_title'><?php echo CONST_CHANGE_PASSWORD_TITLE ?></td>
	</tr>
</table>		
<form action='index.php' method='post' name='f_dsp_change_password'>
	<input type='hidden' name='fuseaction' value='DISPLAY_CHANGE_PASSWORD'>
	<input type='hidden' name='hdn_question' value=''>
	<input type='hidden' name='hdn_list_xml_tag' value=''>
	<input type='hidden' name='hdn_list_xml_value' value=''>
<table width='100%' class='form_table1'  border='0' cellspacing='0' cellpadding='0'>
	<col width="25%"><col width="75%">
	<tr>
		<td class="normal_label"><?php echo CONST_USERNAME_LABEL;?><small class="small_starmark">*</small></td>
		<td class="normal_label"><input name="txt_username" type="text" value="<?php echo $v_username?>" readonly class="normal_textbox" style="width:80%" maxlength="<?php echo CONST_USERNAME_MAXLENGTH; ?>" message="<?php echo CONST_USERNAME_MESSAGE;?>" optional="<?php echo CONST_USERNAME_OPTIONAL;?>" onKeyDown="change_focus(document.forms(0),this)"></td>
	</tr>
	<tr style="display:<?php echo $v_display_none?>">
		<td class="normal_label"><?php echo CONST_OLD_PASSWORD_LABEL;?><small class="small_starmark">*</small></td>
		<td class="normal_label"><input name="txt_old_password" type="password" class="normal_textbox" style="width:80%" maxlength="<?php echo CONST_OLD_PASSWORD_MAXLENGTH; ?>" message="<?php echo CONST_OLD_PASSWORD_MESSAGE;?>" optional="<?php echo $v_password_optional;?>" onKeyDown="change_focus(document.forms(0),this)"></td>
	</tr>
	<tr style="display:<?php echo $v_display_none?>">
		<td class="normal_label"><?php echo CONST_NEW_PASSWORD_LABEL;?><small class="small_starmark">*</small></td>
		<td class="normal_label"><input name="txt_new_password" type="password" class="normal_textbox" style="width:80%" maxlength="<?php echo CONST_NEW_PASSWORD_MAXLENGTH; ?>" message="<?php echo CONST_NEW_PASSWORD_MESSAGE;?>" optional="<?php echo $v_password_optional;?>" onKeyDown="change_focus(document.forms(0),this)"></td>
	</tr>
	<tr style="display:<?php echo $v_display_none?>">
		<td class="normal_label"><?php echo CONST_RE_NEW_PASSWORD_LABEL;?><small class="small_starmark">*</small></td>
		<td class="normal_label"><input name="txt_re_new_password" type="password" class="normal_textbox" style="width:80%" maxlength="<?php echo CONST_RE_NEW_PASSWORD_MAXLENGTH; ?>" message="<?php echo CONST_RE_NEW_PASSWORD_MESSAGE;?>" optional="<?php echo $v_password_optional;?>" onKeyDown="change_focus(document.forms(0),this)"></td>
	</tr>
	<tr><td>&nbsp;</td></tr>
</table>
<table width='100%'  border='0' cellspacing='0' cellpadding='0'>
	<tr height="5pt"><td>&nbsp;</td></tr>
	<tr align="center">
		<td>
			<input type="button" name="btn_save"  class="normal_button" value="<?php echo _CONST_SAVE_BUTTON;?>" onClick="btn_password_update('CHANGE_PASSWORD');" onKeyDown="change_focus(document.forms(0),this)">
			<input type="button" name="btn_back" class="normal_button" value="<?php echo _CONST_BACK_BUTTON;?>" onClick="window.close();" onKeyDown="change_focus(document.forms(0),this)">
		</td>
	</tr>
</table>
<!--//End//Form-->
</form>
<script language="JavaScript">
	set_focus(document.forms(0));
</script>